<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MySQLPass</title>
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
    <style>
        /* 自定义样式 */
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8f9fa;
            color: #333;
        }
        
        .hero-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 80px 0;
            margin-bottom: 50px;
        }
        
        .hero-section h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 20px;
        }
        
        .hero-section p {
            font-size: 1.2rem;
            margin-bottom: 30px;
        }
        
        .download-btn {
            background-color: #28a745;
            border-color: #28a745;
            padding: 12px 30px;
            font-size: 1.2rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .download-btn:hover {
            background-color: #218838;
            border-color: #1e7e34;
            transform: translateY(-2px);
        }
        
        .feature-card {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
        }
        
        .feature-icon {
            font-size: 2.5rem;
            color: #667eea;
            margin-bottom: 20px;
        }
        
        .version-info {
            background-color: #e9ecef;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
        }
        
        .footer {
            background-color: #343a40;
            color: white;
            padding: 40px 0;
            margin-top: 80px;
        }
        
        .system-requirements {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .changelog {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .changelog ul {
            list-style-type: none;
            padding-left: 0;
        }
        
        .changelog li {
            padding: 10px 0;
            border-bottom: 1px solid #e9ecef;
        }
        
        .changelog li:last-child {
            border-bottom: none;
        }
        
        .version-badge {
            background-color: #007bff;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.9rem;
            font-weight: 600;
        }
    </style>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
    <!-- Hero Section -->
    <div class="hero-section text-center">
        <div class="container">
            <h1>MySQLPass</h1>
            <p class="lead">免费、高效、安全的MySQL密码管理工具</p>
            <div class="version-info">
                <p class="mb-0">当前版本: <span th:text="${currentVersion}" class="version-badge"></span></p>
            </div>
            <a th:href="@{/update/download}" class="btn download-btn btn-lg">
                <i class="fas fa-download mr-2"></i>立即下载
            </a>
        </div>
    </div>

    <!-- Features Section -->
    <div class="container">
        <h2 class="text-center mb-5">功能特点</h2>
        <div class="row">
            <!-- Feature 1 -->
            <div class="col-md-4">
                <div class="feature-card text-center">
                    <div class="feature-icon">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                     <h3>免费使用</h3>
                    <p>免费的原因，市面上大部分的mysql管理工具，要么是要收费，要么要破解，要么要密钥!我不要，下载了直接用！干死那帮收费的，帮我推广就是最大的支持！</p>
                   
                </div>
            </div>
            
            <!-- Feature 2 -->
            <div class="col-md-4">
                <div class="feature-card text-center">
                    <div class="feature-icon">
                        <i class="fas fa-bolt"></i>
                    </div>
                    <h3>高效便捷</h3>
                    <p>这是我在吹牛B，但是亲测后，速度还行，使用起来肯定比那些专业的简单，快速连接MySQL数据库，一键执行常用操作，提高工作效率，当然我会一直更新功能，您有好的建议，可以在在软件上提，软件上提建议的功能！谢谢。</p>
                </div>
            </div>
            
            <!-- Feature 3 -->
            <div class="col-md-4">
                <div class="feature-card text-center">
                    <div class="feature-icon">
                        <i class="fas fa-database"></i>
                    </div>
                    <h3>安全可靠</h3>
                    <p>这款程序是我个人开发的，放心使用，不强制绑定什么东西，也不弹广告。采用高级加密算法保护您的MySQL连接信息，确保数据安全</p>
                </div>
            </div>
        </div>
    </div>

    <!-- System Requirements Section -->
    <div class="container">
        <h2 class="text-center mb-5">系统要求</h2>
        <div class="system-requirements">
            <div class="row">
                <div class="col-md-6">
                    <h3>最低配置</h3>
                    <ul class="list-group list-group-flush">
                        <li class="list-group-item"><i class="fas fa-laptop mr-2"></i>操作系统: Windows 7 或更高版本</li>
                        <li class="list-group-item"><i class="fas fa-microchip mr-2"></i>处理器: 1 GHz 或更高</li>
                        <li class="list-group-item"><i class="fas fa-memory mr-2"></i>内存: 2 GB RAM</li>
                        <li class="list-group-item"><i class="fas fa-hdd mr-2"></i>硬盘空间: 100 MB 可用空间</li>
                        <li class="list-group-item"><i class="fas fa-globe mr-2"></i>网络连接: 用于检查更新</li>
                    </ul>
                </div>
                <div class="col-md-6">
                    <h3>推荐配置</h3>
                    <ul class="list-group list-group-flush">
                        <li class="list-group-item"><i class="fas fa-laptop mr-2"></i>操作系统: Windows 10 或更高版本</li>
                        <li class="list-group-item"><i class="fas fa-microchip mr-2"></i>处理器: 2 GHz 双核或更高</li>
                        <li class="list-group-item"><i class="fas fa-memory mr-2"></i>内存: 4 GB RAM 或更高</li>
                        <li class="list-group-item"><i class="fas fa-hdd mr-2"></i>硬盘空间: 500 MB 可用空间</li>
                        <li class="list-group-item"><i class="fas fa-globe mr-2"></i>网络连接: 高速互联网连接</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <!-- Changelog Section -->
    <div class="container">
        <h2 class="text-center mb-5">更新日志</h2>
        <div class="changelog">
            <h3>版本 <span th:text="${latestVersion}"></span></h3>
            <ul>
                <li><i class="fas fa-check-circle text-success mr-2"></i> 修复了检查更新功能的问题</li>
                <li><i class="fas fa-check-circle text-success mr-2"></i> 优化了用户界面体验</li>
                <li><i class="fas fa-check-circle text-success mr-2"></i> 提高了应用程序的稳定性</li>
                <li><i class="fas fa-check-circle text-success mr-2"></i> 增加了对最新MySQL版本的支持</li>
            </ul>
        </div>
    </div>

    <!-- Footer -->
    <footer class="footer">
        <div class="container text-center">
            <p>&copy; 2025 MySQLPass. 保留所有权利。</p>
            <div class="mt-3">
                <a href="#" class="text-white mx-2"><i class="fab fa-github"></i></a>
                <a href="#" class="text-white mx-2"><i class="fab fa-twitter"></i></a>
                <a href="#" class="text-white mx-2"><i class="fab fa-linkedin"></i></a>
            </div>
        </div>
    </footer>

    <!-- Bootstrap JS and dependencies -->
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js"></script>
</body>
</html>